stack = []
for s in range(1, 7):
    stack.append(s)
print('进栈后的堆栈情况:', stack)
i = 1
while stack:
    print('元素%d第%d个出栈'%(stack.pop(),i))
    i+=1
